import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @ClassName Demo01_FWConstructor
 * @Description FileWriter 类构造方法
 * @Author Li
 * @Date 2022/8/11 14:22
 * @ModifyDate 2022/8/11 14:22
 * @Version 1.0
 */
public class Demo01_FWConstructor {
    public static void main(String[] args) throws IOException {
        // 使用File对象创建流对象
        File file = new File("src/part09/ch03_CharacterStream/a.txt");
        FileWriter fw1 = new FileWriter(file);

        // 使用文件名称创建流对象
        FileWriter fw2 = new FileWriter("src/part09/ch03_CharacterStream/b.txt");
    }
}
